package com.yantong.utils;

import java.util.Date;
import java.util.Random;

public class OrderSnUtil {

    /**
     * 获取序列号
     *
     * @return
     */
    public static String getSn(String prefix) {
        Random random = new Random();
        String nx = DateUtils.format(new Date(), "yyyyMMddHHmmssSSS");
        return prefix.concat(nx).concat(String.valueOf(random.nextInt(1000)));
    }
}
